/**
 * GENPlusDroid
 * Copyright 2011 Stephen Damm (Halsafar)
 * All rights reserved.
 * shinhalsafar@gmail.com
 *
 * Quad.h
 *
 *  Created on: 2011-05-01
 *      Author: halsafar
 */

#ifndef QUAD_H_
#define QUAD_H_

#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>

class Quad2D
{
public:
     Quad2D();
     Quad2D(float x, float y, float width, float height);
     ~Quad2D();

     const GLfloat* getVerticesPtr() { return _vertices; }
     const GLfloat* getTexCoordPtr() { return _texCoords; }

     void SetDimensions(float x, float y, float width, float height);
     void SetTextureId(GLint id);

     GLint getTextureId() { return _textureId; }
     bool isVisible() { return _isVisible; }
     void setVisible(bool visible) { _isVisible = visible; }
private:
     float _x;
     float _y;
     float _width;
     float _height;

     GLfloat* _vertices;
     GLfloat* _texCoords;

     GLint _textureId;

     bool _isVisible;
};


#endif /* QUAD_H_ */
